﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CarHelpDesk.Web.Models.AccountViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Твоят профил
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Твоят профил</h2>
    
    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
        <div>
            <fieldset>
                <legend>Информация за профила</legend>
                
                <br />
                <div class="editor-label" style="float: left; margin:-5px 0px -3px;">
                    <%=Html.LabelFor(m=>m.UserName) %>
                </div>
                <div style="float: right;">               
                    <%= Html.DisplayFor(m => m.UserName)%>
                </div>
                <br />                
                <hr />
                <br />
                <div class="editor-label" style="float: left; margin:-5px 0px -3px;">
                    <%=Html.LabelFor(m=>m.Email) %> 
                </div>
                <div style="float: right;">               
                    <%= Html.DisplayFor(m => m.Email)%>
                </div>
                <br />
                <hr />
                <br /> 
                <div class="editor-label" style="float: left; margin:-5px 0px -3px;">
                    <%=Html.LabelFor(m=>m.UserDetail.FirstName) %> 
                </div>
                <div style="float: right;">               
                    <%= Html.DisplayFor(m => m.UserDetail.FirstName)%>
                </div>     
                <br />
                <hr />
                <br />                 
                <div class="editor-label" style="float: left; margin:-5px 0px -3px;">
                    <%=Html.LabelFor(m=>m.UserDetail.LastName) %> 
                </div>
                <div style="float: right;">               
                    <%= Html.DisplayFor(m => m.UserDetail.LastName)%>
                </div>     
                <br />
                <hr />
                <br />           
                <div class="editor-label" style="float: left; margin:-5px 0px -3px;">
                    <%=Html.LabelFor(m=>m.UserDetail.UserRating) %>
                </div>
                <div style="float: right;">               
                    <%= Html.DisplayFor(m => m.UserDetail.UserRating)%>
                </div>
                <br />
                <hr />
                <br /> 
                
                <div>
                    <b><%= Html.ActionLink("Промяна на профила", "AccountEdit", "Account" )%></b>
 
                    <b><%= Html.ActionLink("Промяна на парола", "ChangePassword", "Account" )%></b>
                </div>
            </fieldset>
        </div>
    <% } %>

</asp:Content>
